/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-09-26
 * Time: 8:13
 */
public class Test {
    public static void main(String[] args) {

        //计算
        //double s;
        //s=(Math.sqrt(1.21)*Math.exp(2.5)*Math.pow(3.6,3)-Math.log(4.0))/Math.sin(Math.toRadians(390));
        //System.out.println(s);


        //概率模拟
        /*double s;
        s=Math.random();
        if(s<0.05){
            System.out.println("sp");
        }else if(s<0.1){
            System.out.println("ssr");
        }else if(s<0.2){
            System.out.println("sr");
        }else{
            System.out.println("r");
        }
        System.out.println(s);*/

        //计算角度
        /*double a=0,b=0,c=0;
        a=Math.sqrt(Math.pow(2-1,2)+Math.pow(2-1,2));
        b=Math.sqrt(Math.pow(3-2,2)+Math.pow(2-1,2));
        c=Math.sqrt(Math.pow(3-1,2)+Math.pow(1-1,2));
        double A=Math.acos(a*a-b*b-c*c)/(-2*b*c);
        double B=Math.acos(b*b-a*a-c*c)/(-2*a*c);
        double C=Math.acos(c*c-a*a-b*b)/(-2*a*b);
        System.out.println(A);
        System.out.println(B);
        System.out.println(C);*/

        //水仙花数
/*        for (int i = 100; i < 1000; i++) {
            int a=i/100;
            int b=i/10%10;
            int c=i%10;
            if(Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3)==i){
                System.out.println(i);
            }
        }*/
    }
}
